/* 基础样式 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
}

/* 背景容器 */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-image: url('./login-image.png');
  background-size: cover;
  background-position: center;
  padding: 20px;
  position: relative;
}

/* 背景遮罩 */
.auth-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

/* 卡片样式 */
.auth-card {
  width: 100%;
  max-width: 400px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

/* 健身图标 */
.fitness-icon {
  text-align: center;
  padding: 20px 0;
}

.dumbbell-icon {
  width: 60px;
  height: 30px;
  margin: 0 auto;
  position: relative;
}

/* 哑铃杆 */
.dumbbell-icon::before {
  content: '';
  position: absolute;
  width: 60%;
  height: 8px;
  background-color: black;
  top: 50%;
  left: 20%;
  transform: translateY(-50%);
  border-radius: 4px;
}

/* 哑铃两端 */
.dumbbell-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  background-color:black;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 36px 0 0 0 black;
}

/* 头部区域 */
.auth-header {
  padding: 0 30px 15px;
  text-align: center;
}

.auth-header h2 {
  color: #2d3436;
  font-size: 24px;
  margin-bottom: 10px;
}

.auth-header p {
  color: #636e72;
  font-size: 14px;
  margin-bottom: 10px;
}

/* 消息提示 */
.success-message {
  color: black;
  font-size: 14px;
}

.error-message {
  color: #e74c3c;
  font-size: 14px;
}

/* 切换链接 */
.toggle-link {
  background: none;
  border: none;
  color: black;
  cursor: pointer;
  font-weight: 500;
}

.toggle-link:hover {
  color: black;
  text-decoration: underline;
}

/* 表单样式 */
.auth-form {
  padding: 15px 30px 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #2d3436;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
}

.form-group input:focus {
  outline: none;
  border-color: black;
}

/* 按钮样式 */
.auth-button {
  width: 100%;
  padding: 13px;
  background-color: black;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.auth-button:hover:not(:disabled) {
  background-color: black;
}

.auth-button:disabled {
  background-color: #b2bec3;
  cursor: not-allowed;
}

/* 健身格言 */
.fitness-motto {
  text-align: center;
  padding: 15px 30px;
  background-color: #f8f9fa;
  color: black;
  font-size: 13px;
  font-style: italic;
  border-top: 1px solid #f1f1f1;
}

/* 手机适配 */
@media (max-width: 480px) {
  .auth-card {
    max-width: 100%;
  }
}
    